﻿<table>
<tr>
<?php echo form_open('adminStaff/deleteAssociations/'.$id); ?>
	<td colspan="2"><h2 class="title">Здруженија</h2></td>
	<td><input type="submit" name="submit" value="Избриши селектирани" /></td>
</tr>
<tr><td colspan="2"><h2>Промени здруженија</h2></td></tr>
<?php 
	foreach ($assocs as $assoc)
	{
		echo "<tr><td colspan='2'><a href='".site_url('adminStaff/editAssociation/'.$assoc->idAscPk."/".$id)."'>".$assoc->name."</a></td>";
		echo "<td><input type='checkbox' name=".$assoc->idAscPk." value=".$assoc->idAscPk." /></td></tr>";
	}	
?>
<?php echo form_close(); ?>
<tr><td colspan="2"><h2>Додади здружение</h2></td></tr>

<?php echo form_open('adminStaff/addAssociation/'.$id); ?>
<tr>
<td>Име на здружение:</td>
	<td><input type="text" name="name" id="name" /></td>
	</tr><tr>
	<td>Линк на здружение:</td>
	<td><input type="text" name="link" id="link" /></td>
	</tr><tr>
	<td colspan="2"><input type="submit" name="submit" value="Додади" /></td>
	</tr>
<?php echo form_close(); ?>

</table>
